package com.zrgg.futuwen;

import android.content.Intent;

import com.zrgg.futuwen.base.SimpleActivity;

/**
 * 描述：
 * Created by rookieCi on 2017/11/15.
 */

public class WelcomeActivity extends SimpleActivity {
    protected int getLayout() {
        return R.layout.activity_welcome;
    }

    protected void initEventAndData() {


        new Thread(new Runnable() {
            @Override
            public void run() {

                try {
                    Thread.sleep(500);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }


                getActivity().runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        Intent intent = new Intent(WelcomeActivity.this, MainActivity.class);
                        startActivity(intent);
                        finish();
                    }
                });

            }
        }).start();
    }
}
